import base from "./base";
import axios from "../utils/Axios";

const Qiniu = {
  // 获取上传证书秘钥
  getToken() {
    return axios.get(`${base.qiniuToken}`);
  },
  delfile(params) {
    return new Promise((resolve, reject) => {
      axios
        .get(base.delfile, { params })
        .then((res) => {
          resolve(res.data);
        })
        .catch((err) => {
          reject(err.data);
        });
    });
  }
};
export default Qiniu;
